Evaluate the step function